<template>
  <div class="optionbtn-box" >
    <div class="optionbtn"  v-for="(item,index) in optionData.items"  @click="handle(index)" :key="index" v-if="item.id>0">{{item.label}}</div>
  </div>
</template>

<script>
    export default {
        name: "Options",
        props:['optionData'],
        data(){
          return {

          }
        },
      methods:{
        handle(index){
          this.$emit(this.optionData.items[index].func.func, this.optionData.items[index].func.uuid);
          }
        }
    }
</script>

<style scoped>
</style>
